/*
 * @Description:查询返回
 * @Version: 2.0
 * @Autor: wiz
 * @Date: 2022-08-01 10:43:06
 * @LastEditors: wiz
 * @LastEditTime: 2023-06-06 07:45:10
 */

// eslint-disable-next-line max-classes-per-file
export class T_queryResData<T> {
  total: number;

  pageTotal?: number;

  summaryInfo?: any;

  rows: Array<T>;
}
export interface I_queryResData<T> extends T_queryResData<T> {}

export class T_queryRes<T> {
  success: boolean;

  msg?: string;

  data: T_queryResData<T>;

  public isSuccess(): boolean {
    return this.success;
  }
}
// 查询API返回接口
export interface I_queryRes<T> extends T_queryRes<T> {}
